package cn.easyproject.easyee.auto.generator;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Utils {
	static Pattern p=Pattern.compile("([a-z])([A-Z])");
	public static String escapeToMyBatisName(String str){
		Matcher matcher=p.matcher(str);
		return matcher.replaceAll("$1_$2");
	}


		public static void main(String[] args) {
			// EasyEE Auto

			// Generate all the classes under the entity package
			String entityPackage="com.mg.qms.entity";
			new SMSpringBootCodeGenerator().SMCodeGenerator(entityPackage);

			// Generates the specified class
			//		new SHCodeGenerator().generator(Basic.class);

			System.out.println("Generator work done.");

		}

	
}
